
package org.come.entity;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import javax.swing.ImageIcon;
import org.come.socket.GameClient;



public class RefiningValue {
    private static Image icon = new ImageIcon("inkImg/newbackground/B282.png").getImage();
    private static Image icon2 = new ImageIcon("skin/8100226/button/14.png").getImage();
    private int x;
    private int y;
    private String v1;
    private String v2;
    private boolean nowAttr;

    public RefiningValue(int x, int y, String v1, String v2, boolean is) {
        this.x = x;
        this.y = y;
        this.v1 = v1;
        this.v2 = v2;
        if (GameClient.lianhua == 0) {
            this.nowAttr = is;
        }

    }

    public void draw(Graphics g) {
        g.setColor(Color.GREEN);
            g.drawImage(icon, x, y, null);
            if (nowAttr) {
                g.drawImage(icon2, x + 145, y + 5, null);
            }
            g.drawString(v1, x + 10, y + 20);
            g.drawString(v2, x + 170, y + 20);
    }

    public int getX() {
        return this.x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return this.y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public String getV1() {
        return this.v1;
    }

    public void setV1(String v1) {
        this.v1 = v1;
    }

    public String getV2() {
        return this.v2;
    }

    public void setV2(String v2) {
        this.v2 = v2;
    }

    public boolean isNowAttr() {
        return nowAttr;
    }

    public void setNowAttr(boolean nowAttr) {
        this.nowAttr = nowAttr;
    }
}
